﻿<phone:PhoneApplicationPage 
    x:Class="QuickTasks.FavoriteMobile"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="/QuickTaskBgImages/BackGround6.png"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>

        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal"  Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="QUICK TASKS - MOBILE NOS" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ListBox x:Name="lbxMobileNumbers" Margin="12,0,0,0">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel>
                            <TextBlock Text="{Binding Name}" FontSize="35" />
                            <StackPanel Margin="10,0,0,0">
                                <TextBlock FontSize="26" Foreground="{StaticResource PhoneAccentBrush}" Text="{Binding mtype}" Visibility="{Binding mvis}"></TextBlock>
                                <CheckBox  FontSize="26" Content="{Binding Mobile}" Visibility="{Binding mvis}" Tag="{Binding mtype1}"/>

                                <TextBlock FontSize="26" Foreground="{StaticResource PhoneAccentBrush}" Text="{Binding mwtype}" Visibility="{Binding mwvis}"></TextBlock>
                                <CheckBox  FontSize="26" Content="{Binding mWork}" Visibility="{Binding mwvis}" Tag="{Binding mwtype1}"/>

                                <TextBlock FontSize="26" Text="{Binding htype}" Foreground="{StaticResource PhoneAccentBrush}" Visibility="{Binding hvis}"></TextBlock>
                                <CheckBox  FontSize="26" Content="{Binding Home}" Visibility="{Binding hvis}" Tag="{Binding htype1}"/>
                            </StackPanel>
                        </StackPanel>
                    </DataTemplate>
                   
                </ListBox.ItemTemplate>
               
            </ListBox>
        </Grid>
        <StackPanel Name="adstackpanel" Grid.Row="2" VerticalAlignment="Bottom" Margin="-15,32,0,0"></StackPanel>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/Messagesave.png" Text="save" Click="ApplicationBarIconButton_Click"/>
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>-->
            <!--<shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
